package com.hebhy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
* <p>Description: </p>
* @author chenxu49
* @date 2018年1月5日:下午3:19:27
*/
@Controller
public class LogController {

	private Logger log = LoggerFactory.getLogger(LogController.class);
	
	@RequestMapping("/log")
	public @ResponseBody String testlog() {
		System.out.println("stdout ================== ");
		log.info("info =======================");
		log.error("error =====================");

		return "hello world";
	}
	
}
